package com.cl.pattern.flyweight;

/**
 * 需要共享的具体的享元类
 */
public class ConcreteFlyweight extends Flyweight {

    /**
     * 接受外部状态
     * @param extrinsic
     */

    public ConcreteFlyweight(String extrinsic) {
        super(extrinsic);
    }

    /**
     * 根据外部状态进行逻辑处理
     * @param extrinsic
     */

    @Override
    public void operate(int extrinsic) {
        System.out.println("具体Flyweight:" + extrinsic);
    }

}